package com.wiserun.RestFul.mapper;


import com.wiserun.RestFul.model.User;
import com.wiserun.RestFul.model.UserDeptVO;
import com.wiserun.common.mapper.BaseMapper;

import java.util.List;

public interface PncsUserMapper extends BaseMapper<User> {
    //add
    int addUser(User user);

    //根据userId查询单个用户
    User queryByUserId(String userID);
    @Override
    List<User> queryList(User user);
    //修改用户数据
    int updateUser(User user);
    //查询所有用户包含部门信息
    List<UserDeptVO> queryAllUsers();
    //获取到的用户条数
    int countUser();

}
